package com.pow.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

@Entity
@Table(name="permission")
public class Permission {

	@Id
	private String permissionId;//模块id 用uuid生成
	private String permissionValue;//权限值	
	private String permissionModule;//权限模块
	private String permissionName;//权限名称
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private String permissionLastUpdateTime;//上次修改时间
	public Permission() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Permission(String permissionId, String permissionValue, String permissionModule, String permissionName,
			String permissionLastUpdateTime) {
		super();
		this.permissionId = permissionId;
		this.permissionValue = permissionValue;
		this.permissionModule = permissionModule;
		this.permissionName = permissionName;
		this.permissionLastUpdateTime = permissionLastUpdateTime;
	}
	public String getPermissionId() {
		return permissionId;
	}
	public void setPermissionId(String permissionId) {
		this.permissionId = permissionId;
	}
	public String getPermissionValue() {
		return permissionValue;
	}
	public void setPermissionValue(String permissionValue) {
		this.permissionValue = permissionValue;
	}
	public String getPermissionModule() {
		return permissionModule;
	}
	public void setPermissionModule(String permissionModule) {
		this.permissionModule = permissionModule;
	}
	public String getPermissionName() {
		return permissionName;
	}
	public void setPermissionName(String permissionName) {
		this.permissionName = permissionName;
	}
	public String getPermissionLastUpdateTime() {
		return permissionLastUpdateTime;
	}
	public void setPermissionLastUpdateTime(String permissionLastUpdateTime) {
		this.permissionLastUpdateTime = permissionLastUpdateTime;
	}
	@Override
	public String toString() {
		return "Permission [permissionId=" + permissionId + ", permissionValue=" + permissionValue
				+ ", permissionModule=" + permissionModule + ", permissionName=" + permissionName
				+ ", permissionLastUpdateTime=" + permissionLastUpdateTime + "]";
	}
	
}
